﻿<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>MySearch</title>
		<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
		<script src="js/jquery-3.1.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div>
			<a href="../search/">返回</a>
<!-- 			<a href="#" onclick="window.open(document.all.ifrmname.src,'result','')">刷新</a> -->
		</div>
		<iframe src="#" id="result" style="width: 100%;height: 1750px;border:0px;overflow: hidden;" scrolling="no" ></iframe>
	</body>
		<script type="text/javascript">
			$(function(){
				var sindex=window.location.href.indexOf("?");
				var s=window.location.href.substring(sindex+1); 
				$("#result").attr("src",s); 
				$("#result").on("load",function(){ 
					changeFrameHeight();
				}); 
			});
			function changeFrameHeight(){
	// 		    var ifm= $("#result"); 
	// 		    console.log(ifm.contents().find("body").height());
	// 		    ifm.height(ifm.contents().find("body").height());
	// 		    ifm.height=document.documentElement.clientHeight;
			}
			function flushData(){
				alert($("#result").get(0).location);
			}
			window.onresize=function(){
				changeFrameHeight();
			}
		</script>
</html>
